/*
 * @Author: leechoy 1419352779@qq.com
 * @Date: 2024-06-17 14:40:48
 * @LastEditors: leechoy 1419352779@qq.com
 * @LastEditTime: 2024-07-07 15:28:32
 * @FilePath: /H5_SCAN/Front/H5_SCAN/src/api/dashbord/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { request } from '../../core/request'

import { handleGetParmas} from '@/utils/index'

/**
 * @description: 获取历史检测列表数据
 * @param {*} params
 * @return {*}
 */
export const queryScanListData = ( params = {url:'',manager:"",pass:"",businesslines:"",type:""})=> {
    return request(handleGetParmas('/api/checklist',params),'get','');
  }


/**
 * @description: 获取检测基本数据
 * @param {*} params
 * @return {*}
 */
export const  getBaseData = (params = {}) =>{
  return request('/api/data/dataPart','get',params);
}


/**
 * @description: 获取近七天数据
 * @param {*} params
 * @return {*}
 */
export const getSevenDayData = ()=>{
  return request('/api/data/getSevenDayData','get');
}

/**
 * @description: 获取近七天数据
 * @param {*} params
 * @return {*}
 */
export const getBusinessLineData = ()=>{
  return request('/api/data/getBusinessLineData','get');
}